export default class GameListOrBannerControl extends PaoYa.Component {
    onAwake() {
        let userId = PaoYa.DataCenter.user.id
        if (this.owner.params.type == PaoYa.GameEntryType.Friend) { return }
        if (userId == this.owner.params.result.lose_user.user_id) {
            this.showList()
        } else {
            this.showBannerAd({})
        }
    }
    showList() {
        this.owner.gameList.visible = true
    }
}